import request from '@/utils/request'

// 查询saleOrderDetail列表
export function listSaleOrderDetail(query) {
  return request({
    url: '/costumeShop/saleOrderDetail/list',
    method: 'get',
    params: query
  })
}

// 查询saleOrderDetail详细
export function getSaleOrderDetail(saleOrderDetailId) {
  return request({
    url: '/costumeShop/saleOrderDetail/' + saleOrderDetailId,
    method: 'get'
  })
}

// 新增saleOrderDetail
export function addSaleOrderDetail(data) {
  return request({
    url: '/costumeShop/saleOrderDetail',
    method: 'post',
    data: data
  })
}

// 修改saleOrderDetail
export function updateSaleOrderDetail(data) {
  return request({
    url: '/costumeShop/saleOrderDetail',
    method: 'put',
    data: data
  })
}

// 删除saleOrderDetail
export function delSaleOrderDetail(saleOrderDetailId) {
  return request({
    url: '/costumeShop/saleOrderDetail/' + saleOrderDetailId,
    method: 'delete'
  })
}
